New test for validation with dots #759
Open
+10
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since in v0.62.0 was introduced a new validation, that was advised as a breaking change, it indeed it was transparent breaking change for me.
I am using OTEL that is exporting metrics via prometheus. They contain dots in the name e.g.
module.submodule.metric_name
. Up until this change, they were changed tomodule_submodule_metric_name
and everything worked properly.Since this breaking change, they do contain the dot. However, only when requesting metrics with
escaping=allow-utf-8
what is prometheus doing by default.It was tricky to find the root of this behavior change, since
curl 127.0.0.1:9000/metrics
yields correct results, butcurl -H 'Accept: text/plain;escaping=allow-utf-8' 127.0.0.1:9000/metrics
adds dots to the name.I don't know if this change was intended, if I should change my metrics everywhere to include the dot or not. In any case, I just added tests to validate with dots so the expected behavior is defined in tests.